<h2> Partners </h2>
</br>
<div>
<% @partners.each do |p| %>
<div style="margin-left:20px">
<table>
<tr>
<td>
<%= image_tag(p.photo.url, :size => "50x64") %>
</td>
<td>
<div>
<b>&nbsp;&nbsp;Name: </b><%= p.name %>
</br>
<b>&nbsp;&nbsp;Page Link: </b><%= p.page_link %>
</br>
&nbsp;&nbsp;<%= link_to("Edit", {:controller => "partners", :id => p.id, :action => "edit"}) %>
</td>
</div>
</tr>
</table>
<div style="margin-top:5px">
<%= button_to("Delete", p, :confirm => "sure", :method=> :delete) %>
</div>

</br>
</div>
<% end %>
&nbsp;&nbsp;&nbsp;&nbsp;<%= link_to("+ Add Partner", :action => "new") %>
</div>

